function clientstate_menu()
	sTemp = "\027[01;30m\027[01;40mMain Menu\027[0m\r\n=========\r\n"
	..	" 1) Login\r\n"
	..	" 2) Create New Character\r\n"
	..	" 3) Quit\r\n"
	thisClient:sendData(sTemp)
	thisClient:setClientState(2) -- CLIENT_MENU_INPUT
end

function clientstate_menuinput()
	if thisInput == "1" then
		thisClient:sendData("\r\nLogging in...\r\n")
		thisClient:setClientState(3) -- CLIENT_LOGIN_USERNAME
	elseif thisInput == "2" then
		thisClient:sendData("\r\nCreating new character\r\n======================\r\n\r\n")
		thisClient:setClientState(7) -- CLIENT_CREATE_USERNAME
	elseif thisInput == "3" then
		thisClient:sendData("\r\nGoodbye\r\n\r\n")
		thisClient:setClientState(23) -- CLIENT_LOGOUT
	else
		thisClient:sendData("\r\nTry that again, sparky.\r\n\r\n" .. "thisInput: " .. thisInput .. "\r\n")
		thisClient:setClientState(1)
	end
end

function clientstate_createrace()
	sTemp = "\r\nChoose a Race\r\n=============\r\n\r\n"
	..	"Races are an important choice, which should be made carefully\r\n"
	..	"since you cannot change them in the game.\r\n"
	..	"The following table will give you a basic idea of the way\r\n"
	..	"a characters race will influence his/her stats.\r\n\r\n"
	..	"    ---   --------   HP  MP STR DEX VIT AGI INT MND CHR\r\n"
	..	" 1) HUM - Hume       D   D   D   D   D   D   D   D   D\r\n"
	..	" 2) ELV - Elvaan     C   E   B   E   C   F   F   B   D\r\n"
	..	" 3) TAR - Tarutaru   G   A   F   D   E   C   A   E   D\r\n"
	..	" 4) MIT - Mithra     D   D   E   A   E   B   D   E   F\r\n"
	..	" 5) GAL - Galka      A   G   C   D   A   E   E   D   F\r\n"
	..	"\r\nYour choice: "
	thisClient:sendData(sTemp)
	thisClient:setClientState(12) -- CLIENT_CREATE_RACE_INPUT
end

function clientstate_createjob()
	sTemp = "\r\nChoose a Job\r\n============\r\n\r\n"
	..	"Jobs are basically Classes, just stolen from Final Fantasy,\r\n"
	..	"because I have no natural imagination.\r\n\r\n"
	..	"Don't worry if you choose a job you don't like - you can change them in the game.\r\n\r\n"
	..	"The following table will give you a basic idea of the way\r\n"
	..	"a characters job will influence his/her stats.\r\n\r\n"
	..	"    ---   ----------   HP  MP STR DEX VIT AGI INT MND CHR\r\n"
	..	" 1) WAR - Warrior      B   x   A   C   D   C   F   F   E\r\n"
	..	" 2) MNK - Monk         A   x   C   B   A   F   G   D   E\r\n"
	..	" 3) WHM - White Mage   E   C   D   F   D   E   E   A   C\r\n"
	..	" 4) BLM - Black Mage   F   B   F   C   F   C   A   E   D\r\n"
	..	" 5) RDM - Red Mage     D   D   D   D   E   E   C   C   D\r\n"
	..	" 6) THF - Thief        D   x   D   A   D   B   C   G   G\r\n"
	..	"\r\nYour choice: "
	thisClient:sendData(sTemp)
	thisClient:setClientState(14) -- CLIENT_CREATE_JOB_INPUT
end

function clientstate_createconfirm()
	sTemp = "\r\n\r\n"
	..	"************\r\n"
	..	"CONFIRMATION\r\n"
	..	"************\r\n"
	..	"\r\n"
	..	"Please confirm your details!\r\n\r\n"
	..	"Name: "
	..	thisCharacterData.name
	..	"\r\nPass: "
	..	thisCharacterData.password
	..	"\r\nRace: "
	..	thisCharacterData.raceNameLong
	..	"\r\nJob: "
	..	thisCharacterData.jobNameLong
	..	"\r\n\r\nIs this OK? ((Y)es/(N)o/(Q)uit) "
	thisClient:sendData(sTemp)
	thisClient:setClientState(16) -- CLIENT_CREATE_CONFIRM
end

